if __name__ == '__main__':
    year = int(input("请输入年份:"))
    month = int(input("请输入月份:"))
    day = int(input("请输入日期:"))

    feb_counts = 0
    counts = 0
    if ((year % 4 == 0) and (year % 100 != 0)) or (year % 400) == 0:
        feb_counts = 29
    else:
        feb_counts = 28

    if month == 1:
        counts = day
    elif month == 2:
        counts = 31 + day
    elif month == 3:
        counts = 31 + feb_counts + day
    elif month == 4:
        counts = 31 + feb_counts + 31 + day
    elif month == 5:
        counts = 31 + feb_counts + 31 + 30 + day
    elif month == 6:
        counts = 31 + feb_counts + 31 + 30 + 31 + day
    elif month == 7:
        counts = 31 + feb_counts + 31 + 30 + 31 + 30 + day
    elif month == 8:
        counts = 31 + feb_counts + 31 + 30 + 31 + 30 + 31 + day
    elif month == 9:
        counts = 31 + feb_counts + 31 + 30 + 31 + 30 + 31 + 31 + day
    elif month == 10:
        counts = 31 + feb_counts + 31 + 30 + 31 + 30 + 31 + 31 + 30 + day
    elif month == 11:
        counts = 31 + feb_counts + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + day
    elif month == 12:
        counts = 31 + feb_counts + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + day

    print("counts: " + str(counts))
